//
//  CXLHomeWebViewController.swift
//  weibo1990
//
//  Created by 曹晓龙 on 15/11/5.
//  Copyright © 2015年 曹晓龙. All rights reserved.
//

import UIKit

class CXLHomeWebViewController: UIViewController {

    /// webView
    private lazy var webView:UIWebView = UIWebView()
    
    /// url
    var url:NSURL
    
    //MARK:- 构造函数
    init(url:NSURL){
        
        self.url = url
        
        super.init(nibName: nil, bundle: nil)
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func loadView() {
        
        view = webView
        
        navigationItem.title = "网页"
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

        webView.loadRequest(NSURLRequest(URL: url))
    }

}
